package yhao.demo.autocode.core.sqlmapper.connect;

import java.util.Map;

public enum DbType {
    MYSQL("com.mysql.jdbc.Driver", DbTypeConstants.mysqlTypeMap),
    ORACLE("oracle.jdbc.driver.OracleDriver", DbTypeConstants.oracleTypeMap),
    ;
    private String driver;
    private Map<String, String> typeMap;

    DbType(String driver, Map<String, String> typeMap) {
        this.driver = driver;
        this.typeMap = typeMap;
    }

    public String getDriver() {
        return driver;
    }

    public Map<String, String> getTypeMap() {
        return typeMap;
    }
}